package com.scienview.core.context;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.web.method.HandlerMethod;


public class Context {

	 HttpServletRequest request;
	 HttpServletResponse response;
	 HandlerMethod handler;
	 long startTime;
	public void parse(HttpServletRequest request,HttpServletResponse response,HandlerMethod handler){
		this.request=request;
		this.response=response;
		this.handler=handler;
		ContextHelper.regist(this);
	}
	public HttpServletRequest getRequest() {
		return request;
	}
	public HttpServletResponse getResponse() {
		return response;
	}
	public HttpSession getHttpSession(){
		return request.getSession(false);
	}
	
	public HandlerMethod getHandler() {
		return handler;
	}
	
	
}
